package cn.kilo.infrastructure.persistent.dao;

import cn.kilo.domain.model.order.entity.OrderEntity;
import cn.kilo.domain.model.order.entity.StaffEntity;
import cn.kilo.infrastructure.persistent.po.DepartmentGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kilok
 */
@Mapper
public interface IDepartmentGroupDao {

    DepartmentGroup getDepartment(@Param("group") Integer group);

    DepartmentGroup getSorter1Staff(@Param("order") OrderEntity order);

    int beMainSorter1(@Param("staffEntity") StaffEntity staffEntity);

    int beMinorSorter1(@Param("staffEntity") StaffEntity staffEntity);

    List<DepartmentGroup> getAll();

    DepartmentGroup getSorter1StaffByDepartmentGroup(@Param("order") OrderEntity order);

    DepartmentGroup getDepartmentByRidgepole(@Param("ridgepole") String ridgepole);


}
